Optimal. Leaf size=157 \[ \frac {64 a (3 A-B) c^4 \cos ^3(e+f x)}{315 f (c-c \sin (e+f x))^{3/2}}+\frac {16 a (3 A-B) c^3 \cos ^3(e+f x)}{105 f \sqrt {c-c \sin (e+f x)}}+\frac {2 a (3 A-B) c^2 \cos ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{21 f}-\frac {2 a B c \cos ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{9 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3046, 2935,
2753, 2752} \begin {gather*} \frac {64 a c^4 (3 A-B) \cos ^3(e+f x)}{315 f (c-c \sin (e+f x))^{3/2}}+\frac {16 a c^3 (3 A-B) \cos ^3(e+f x)}{105 f \sqrt {c-c \sin (e+f x)}}+\frac {2 a c^2 (3 A-B) \cos ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{21 f}-\frac {2 a B c \cos ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{9 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2752
Rule 2753
Rule 2935
Rule 3046
Rubi steps
\begin {align*} \int (a+a \sin (e+f x)) (A+B \sin (e+f x)) (c-c \sin (e+f x))^{5/2} \, dx &=(a c) \int \cos ^2(e+f x) (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx\\ &=-\frac {2 a B c \cos ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{9 f}+\frac {1}{3} (a (3 A-B) c) \int \cos ^2(e+f x) (c-c \sin (e+f x))^{3/2} \, dx\\ &=\frac {2 a (3 A-B) c^2 \cos ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{21 f}-\frac {2 a B c \cos ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{9 f}+\frac {1}{21} \left (8 a (3 A-B) c^2\right ) \int \cos ^2(e+f x) \sqrt {c-c \sin (e+f x)} \, dx\\ &=\frac {16 a (3 A-B) c^3 \cos ^3(e+f x)}{105 f \sqrt {c-c \sin (e+f x)}}+\frac {2 a (3 A-B) c^2 \cos ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{21 f}-\frac {2 a B c \cos ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{9 f}+\frac {1}{105} \left (32 a (3 A-B) c^3\right ) \int \frac {\cos ^2(e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=\frac {64 a (3 A-B) c^4 \cos ^3(e+f x)}{315 f (c-c \sin (e+f x))^{3/2}}+\frac {16 a (3 A-B) c^3 \cos ^3(e+f x)}{105 f \sqrt {c-c \sin (e+f x)}}+\frac {2 a (3 A-B) c^2 \cos ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{21 f}-\frac {2 a B c \cos ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{9 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.98, size = 123, normalized size = 0.78 \begin {gather*} -\frac {a c^2 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \sqrt {c-c \sin (e+f x)} (-942 A+664 B+30 (3 A-8 B) \cos (2 (e+f x))+(648 A-741 B) \sin (e+f x)+35 B \sin (3 (e+f x)))}{630 f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 5.45, size = 103, normalized size = 0.66
method | result | size |
default | \(-\frac {2 \left (\sin \left (f x +e \right )-1\right ) c^{3} \left (1+\sin \left (f x +e \right )\right )^{2} a \left (-35 B \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+\left (-162 A +194 B \right ) \sin \left (f x +e \right )+\left (-45 A +120 B \right ) \left (\cos ^{2}\left (f x +e \right )\right )+258 A -226 B \right )}{315 \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(103\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 256, normalized size = 1.63 \begin {gather*} \frac {2 \, {\left (35 \, B a c^{2} \cos \left (f x + e\right )^{5} + 5 \, {\left (9 \, A - 10 \, B\right )} a c^{2} \cos \left (f x + e\right )^{4} + {\left (117 \, A - 109 \, B\right )} a c^{2} \cos \left (f x + e\right )^{3} - 8 \, {\left (3 \, A - B\right )} a c^{2} \cos \left (f x + e\right )^{2} + 32 \, {\left (3 \, A - B\right )} a c^{2} \cos \left (f x + e\right ) + 64 \, {\left (3 \, A - B\right )} a c^{2} + {\left (35 \, B a c^{2} \cos \left (f x + e\right )^{4} - 5 \, {\left (9 \, A - 17 \, B\right )} a c^{2} \cos \left (f x + e\right )^{3} + 24 \, {\left (3 \, A - B\right )} a c^{2} \cos \left (f x + e\right )^{2} + 32 \, {\left (3 \, A - B\right )} a c^{2} \cos \left (f x + e\right ) + 64 \, {\left (3 \, A - B\right )} a c^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{315 \, {\left (f \cos \left (f x + e\right ) - f \sin \left (f x + e\right ) + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a \left (\int A c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c}\, dx + \int \left (- A c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )}\right )\, dx + \int \left (- A c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{2}{\left (e + f x \right )}\right )\, dx + \int A c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{3}{\left (e + f x \right )}\, dx + \int B c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )}\, dx + \int \left (- B c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{2}{\left (e + f x \right )}\right )\, dx + \int \left (- B c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{3}{\left (e + f x \right )}\right )\, dx + \int B c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{4}{\left (e + f x \right )}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.70, size = 276, normalized size = 1.76 \begin {gather*} -\frac {\sqrt {2} {\left (35 \, B a c^{2} \cos \left (-\frac {9}{4} \, \pi + \frac {9}{2} \, f x + \frac {9}{2} \, e\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 630 \, {\left (5 \, A a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 2 \, B a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 210 \, {\left (A a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + B a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, f x + \frac {3}{2} \, e\right ) - 126 \, {\left (3 \, A a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - B a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {5}{4} \, \pi + \frac {5}{2} \, f x + \frac {5}{2} \, e\right ) + 45 \, {\left (2 \, A a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 3 \, B a c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \cos \left (-\frac {7}{4} \, \pi + \frac {7}{2} \, f x + \frac {7}{2} \, e\right )\right )} \sqrt {c}}{2520 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \left (A+B\,\sin \left (e+f\,x\right )\right )\,\left (a+a\,\sin \left (e+f\,x\right )\right )\,{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________